package cn.yunyichina.provider.framework.dubbo.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.entity.common.ResponseObject;
import cn.yunyichina.provider.iface.service.IIcbcPay;

public class IcbcPayService {
	static final String serviceName = "icbcPayService";

    static IIcbcPay icbcPayService = null;

    static {
    	icbcPayService = SpringContextHandler.getBean(serviceName);
    }
    
    public static IIcbcPay getWechatPayClient(){
    	return icbcPayService;
    }

    public static Response callUnderlineFromInternal(String method, String data) {
        return icbcPayService.callUnderlineFromInternal("", method, data, (short) 0);
    }

    public static ResponseObject callUnderlineFromInternalObject(String method, String data) {
        return icbcPayService.callUnderlineFromInternalObject("", method, data, (short) 0);
    }

    public static Response callUnderlineFromInternal(String sessionId, String method, String data) {
        return icbcPayService.callUnderlineFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String sessionId, String method, String data) {
        return icbcPayService.callHumpFromInternal(sessionId, method, data, (short) 0);
    }

    public static Response callHumpFromInternal(String method, String data) {
        return icbcPayService.callHumpFromInternal("", method, data, (short) 0);
    }
}
